.class Lcom/netease/newsreader/activity/CustomColumn$3;
.super Ljava/lang/Object;
.source "CustomColumn.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/CustomColumn;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/CustomColumn;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/CustomColumn;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    .line 307
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 10
    .parameter "v"

    .prologue
    const/4 v9, 0x0

    .line 313
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$6(Lcom/netease/newsreader/activity/CustomColumn;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 314
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    iget-object v3, v3, Lcom/netease/newsreader/activity/CustomColumn;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "delete from top_columns"

    invoke-virtual {v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 315
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lt v1, v3, :cond_2

    .line 326
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3, v9}, Lcom/netease/newsreader/activity/CustomColumn;->access$7(Lcom/netease/newsreader/activity/CustomColumn;Z)V

    .line 329
    .end local v1           #i:I
    :cond_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$8(Lcom/netease/newsreader/activity/CustomColumn;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 330
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    iget-object v3, v3, Lcom/netease/newsreader/activity/CustomColumn;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "delete from more_columns"

    invoke-virtual {v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 331
    const/4 v1, 0x0

    .restart local v1       #i:I
    :goto_1
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lt v1, v3, :cond_3

    .line 342
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3, v9}, Lcom/netease/newsreader/activity/CustomColumn;->access$9(Lcom/netease/newsreader/activity/CustomColumn;Z)V

    .line 345
    .end local v1           #i:I
    :cond_1
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    const-class v4, Lcom/netease/newsreader/activity/SelectColumn;

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 346
    .local v2, intent:Landroid/content/Intent;
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-virtual {v3, v2}, Lcom/netease/newsreader/activity/CustomColumn;->startActivity(Landroid/content/Intent;)V

    .line 347
    return-void

    .line 317
    .end local v2           #intent:Landroid/content/Intent;
    .restart local v1       #i:I
    :cond_2
    :try_start_0
    const-string v4, "top_columns"

    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    iget-object v5, v3, Lcom/netease/newsreader/activity/CustomColumn;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 318
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/HashMap;

    const-string v6, "tname"

    invoke-virtual {v3, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    .line 319
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/HashMap;

    const-string v7, "tid"

    invoke-virtual {v3, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    .line 320
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/HashMap;

    const-string v8, "cid"

    invoke-virtual {v3, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    .line 317
    invoke-static {v4, v5, v6, v7, v3}, Lcom/netease/newsreader/util/Tools;->insertDataToDB(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 315
    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    .line 321
    :catch_0
    move-exception v0

    .line 323
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_2

    .line 333
    .end local v0           #e:Ljava/lang/Exception;
    :cond_3
    :try_start_1
    const-string v4, "more_columns"

    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    iget-object v5, v3, Lcom/netease/newsreader/activity/CustomColumn;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 334
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/HashMap;

    const-string v6, "tname"

    invoke-virtual {v3, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    .line 335
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/HashMap;

    const-string v7, "tid"

    invoke-virtual {v3, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    .line 336
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$3;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/HashMap;

    const-string v8, "cid"

    invoke-virtual {v3, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    .line 333
    invoke-static {v4, v5, v6, v7, v3}, Lcom/netease/newsreader/util/Tools;->insertDataToDB(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 331
    :goto_3
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_1

    .line 337
    :catch_1
    move-exception v0

    .line 339
    .restart local v0       #e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_3
.end method
